using Webshop20.AntiCorruptionLayers.Amazon.Adapters;
using Webshop20.AntiCorruptionLayers.Amazon.Services.Contracts;

namespace Webshop20.AntiCorruptionLayers.Amazon.Services.Implementations
{
    public class AmazonDistributorService : IAmazonDistributorService
    {
        private IAmazonAdapter amazonAdapter;

        public AmazonDistributorService(IAmazonAdapter amazonAdapter)
        {
            this.amazonAdapter = amazonAdapter;
        }

        public void PlaceNewOrder(int quantity, string productID)
        {
            amazonAdapter.HandleRequest(productID, quantity);
        }
    }
}